home *** CD-ROM | disk | FTP | other *** search
/ Champak 52 / Volume 52 - JOGO DISK .iso / Games / shopdrop.swf / scripts / frame_11 / DoAction.as
Text File  |  2007-09-27  |  2KB  |  77 lines

  1. function monitorComm()
  2. {
  3.    _root.nDebug3 = "monitoring comm, " + mcComm.getBytesTotal();
  4.    if(mcComm.getBytesTotal() > 4)
  5.    {
  6.       if(mcComm.getBytesTotal() == mcComm.getBytesLoaded())
  7.       {
  8.          muck++;
  9.          clearInterval(nInterval);
  10.       }
  11.    }
  12. }
  13. stop();
  14. _global.mcRoot = this;
  15. _global.bHelp = false;
  16. _global.bMute = false;
  17. oBase = new smashing.Base();
  18. this.onEnterFrame = function()
  19. {
  20.    var _loc2_ = this.getBytesLoaded() / this.getBytesTotal();
  21.    var _loc3_ = this.mcLoader.mcPercent;
  22.    var _loc4_ = this.mcLoader.mcBar;
  23.    _loc3_.gotoAndStop(Math.ceil(_loc2_ * _loc3_._totalframes));
  24.    _loc4_.gotoAndStop(Math.ceil(_loc2_ * _loc4_._totalframes));
  25.    if(_loc2_ == 1)
  26.    {
  27.       this.play();
  28.       delete this.onEnterFrame;
  29.    }
  30. };
  31. _global.debugVR = false;
  32. _global.Postopia = Object.Postopia;
  33. _root.nDebug1 = Object.Postopia.VR.balance_balance;
  34. _root.nDebug2 = Object.Postopia.VR;
  35. if(!_global.debugVR)
  36. {
  37.    if(Object.Postopia.VR.balance_balance)
  38.    {
  39.       _global.bBalance = true;
  40.    }
  41.    else
  42.    {
  43.       _global.bBalance = false;
  44.    }
  45.    if(Object.Postopia.VR.balance_bonusCard)
  46.    {
  47.       _global.bBonusCard = true;
  48.    }
  49.    else
  50.    {
  51.       _global.bBonusCard = false;
  52.    }
  53.    if(Object.Postopia.VR.balance_tries)
  54.    {
  55.       _global.bTries = true;
  56.    }
  57.    else
  58.    {
  59.       _global.bTries = false;
  60.    }
  61. }
  62. else
  63. {
  64.    _global.bBalance = true;
  65.    _global.bBonusCard = true;
  66.    _global.bTries = true;
  67. }
  68. _level0.filepath = _level0.filepath == null ? "" : _level0.filepath;
  69. if(_level0.comm != undefined)
  70. {
  71.    if(typeof _level0.comm != "movieclip")
  72.    {
  73.       mcComm.loadMovie(_level0.comm);
  74.       nInterval = setInterval(monitorComm,10);
  75.    }
  76. }
  77.